﻿using SqlSugar;
using System;

namespace DotNetExtensions.Core.SqlSugar
{
    public class BaseModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        [SugarColumn(ColumnName = "last_update_time")]
        public DateTime? LastUpdateTime { get; set; }
        [SugarColumn(ColumnName = "create_user_id")]
        public int CreateUserId { get; set; }
        [SugarColumn(ColumnName = "last_update_user_id")]
        public int LastUpdateUserId { get; set; }


        [SugarColumn(IsIgnore = true)]
        public string CreateUserName { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string LastUpdateUserName { get; set; }
    }
}
